package com.qf.hospital.service;

import com.github.pagehelper.PageInfo;
import com.qf.hospital.entity.User;
import com.qf.hospital.vo.SideVO;
import com.qf.hospital.vo.UserRoleVO;

import java.util.List;

/**
 * @author Administrator
 * @version V1.0
 * @Project hospital
 * @Package com.qf.hospital.service
 * @Description: ${TODO}
 * @Date 2021/10/15 15:04
 */
public interface UserService {


    User findByName(String loginname);

    List<SideVO> findSideByUserId(Integer userId);

    PageInfo<User> findAll(String realname, String loginname, String address, String phone, String identity, Integer page, Integer limit);

    void addUser(User user);

    List<UserRoleVO> initUserRole(Integer userid);

    void saveUserRole(Integer userid, Integer[] ids);

    void deleteByUserId(Integer userid);

    void resetPwdByUserId(Integer userid);

    int updateByUserId(User user);
}
